package com.zy.dp.chainofresponsibility.example4;

public abstract class Handler
{
	protected Handler successor;

	public void setSuccessor(Handler successor)
	{
		this.successor = successor;
	}

	public Object handleRequest(RequestModel rm)
	{
		if (successor != null)
		{

			return this.successor.handleRequest(rm);
		}
		else
		{
			System.out.println("没有后续处理或者暂时不支持这样的功能处理");
			return false;
		}
	}
}
